package com.lujianfei.ann.network.activate;

public class ReLu implements IActivateFunc {

	@Override
	public double f(double x) {
		return x < 0 ? 0 : x;
	}

	@Override
	public double df(double x) {
		return x < 0 ? 0 : 1;
	}

}
